#pragma once
// 枚举类日志等级的定义，以及一个等级转字符串的接口

namespace ldcLOG
{
    class LogLevel
    {
        private:
        public:
        enum Level
        {
            UNKNOW,
            DEBUG,
            INFO,
            WARN,
            ERROR,
            FATAL,
            OFF

        };
     static const char*  toString(ldcLOG::LogLevel::Level level)
        {
            switch (level)
            {
            case DEBUG : return "DEBUG";
            case INFO : return "INFO";
            case WARN : return "WARN";
            case ERROR : return "ERROR";
            case FATAL : return "FATAL";
            case OFF : return "OFF";
            
            }
            return "UNKNOW";
        }
    };
}